<div class="grid_5">
    <div class="box">
        <h2>Сообщения</h2>
        <div class="utils">
            <a href="/admin/qanswer/list">Входящие</a>
        </div>
        <p class="center">
            У Вас <a href="/admin/qanswer/list"><?php echo $question_unread; ?></a>
            непрочитанных сообшений.
        </p>
    </div>
    <div class="box">
        <h2>Статистика</h2>
        <p>
            <strong>Last Signed In : </strong>
            Wed 11 Nov, 7:31
            <br/>
            <strong>IP Address : </strong>
            192.168.1.101
        </p>
    </div>
    <div class="box">
        <h2>Картинки</h2>
        <div class="utils">
            <a href="/admin/qimage/list">смотреть все</a>
        </div>
        <table>
            <tbody>
                <?php
                foreach ($images as $key) {
                    echo '<tr>
                    <td>';
                    //Незнаю я как превьюху сделать :)
                    echo $key->name_image;
                    echo '</td></td>';

                    echo '<td>' . $key->enabled;
                    echo '   </td>
                </tr>';
                }
                ?>







            </tbody>
        </table>
    </div>
</div>
<div class="grid_6">
    <div class="box">
        <h2>Редактировать гл.</h2>
        <div class="utils">
            <a href="/admin/qgeneral/state">смотреть все</a>
        </div>
        <table>
            <tbody>
                <?php
                    echo '<tr>';
                    echo '<td><a href="/admin/qgeneral/edit/id/'.$state[0]['id_state'].'">' . $state[0]['title'] . '</a></td>';
                    Echo '</tr>';
                    echo '<tr>';
                    echo '<td><a href="/admin/qgeneral/edit/id/'.$state[1]['id_state'].'">' . $state[1]['title'] . '</a></td>';
                    Echo '</tr>';
                ?>
            </tbody>
        </table>
    </div>
    <div class="box">
        <h2>Быстрый пост</h2>
        <div class="utils">
            <a href="#">Расширенный</a>
        </div>
        <form action="#" method="post">
            <p>
                <label for="title">Title <small>Alpha-numeric characters only.</small> </label>
                <input type="text" name="title" />
            </p>
            <p>
                <label for="post">Post <small>Parsed by Markdown.</small> </label>
                <textarea name="post"></textarea>
            </p>
            <p>
                <input type="submit" value="Опубликовать" />
            </p>
        </form>
    </div>
</div>

<div class="grid_5">
    <div class="box">
        <h2>Календарь</h2>
<?php $this->widget('CalendarWidget'); ?>
        <!--<table class="date">
            <caption><a href="#">Prev</a> November 2009 <a href="#">Next</a> </caption>
            <thead>
                <tr>
                    <th>Mon</th>
                    <th>Tue</th>
                    <th>Wed</th>
                    <th>Thu</th>
                    <th>Fri</th>
                    <th>Sat</th>
                    <th>Sun</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td><a href="#">1</a></td>
                </tr>
                <tr>
                    <td><a href="#">2</a></td>
                    <td><a href="#">3</a></td>
                    <td><a href="#">4</a></td>
                    <td><a href="#">5</a></td>
                    <td><a href="#">6</a></td>
                    <td><a href="#">7</a></td>
                    <td><a href="#">8</a></td>
                </tr>
                <tr>
                    <td><a href="#">9</a></td>
                    <td><a href="#">10</a></td>
                    <td><a href="#" class="active">11</a></td>
                    <td><a href="#">12</a></td>
                    <td><a href="#">13</a></td>
                    <td><a href="#">14</a></td>
                    <td><a href="#">15</a></td>
                </tr>
                <tr>
                    <td><a href="#">16</a></td>
                    <td><a href="#">17</a></td>
                    <td><a href="#">18</a></td>
                    <td><a href="#">19</a></td>
                    <td><a href="#">20</a></td>
                    <td><a href="#">21</a></td>
                    <td><a href="#">22</a></td>
                </tr>
                <tr>
                    <td><a href="#">23</a></td>
                    <td><a href="#">24</a></td>
                    <td><a href="#">25</a></td>
                    <td><a href="#">26</a></td>
                    <td><a href="#">27</a></td>
                    <td><a href="#">28</a></td>
                    <td><a href="#">29</a></td>
                </tr>
                <tr>
                    <td><a href="#">30</a></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </tbody>
        </table>-->
    </div>
</div>

